================================================================================
                                样例使用说明
                             Sample Description
================================================================================
功能描述：
此样例演示了COMP比较器轮询功能，PA1作为比较器正端输入，128/256Vrefbuf2.048V作为
比较器负端输入，当PA1的电压大于128/256Vrefbuf2.048V电压时，LED灯亮，小于
128/256Vrefbuf2.048V电压时,LED灯灭。

Function descriptions:
This example demonstrates the COMP comparator polling function, with PA1 as the 
positive input and 128/256Vrefbuf2.048V as the negative input. When the voltage 
of PA1 is greater than 128/256Vrefbuf2.048V voltage, the LED lights up, and 
when it is less than 128/256Vrefbuf2.048V voltage, the LED lights off.
================================================================================
测试环境：
测试用板：PY32F410_STK
MDK版本： 5.28
IAR版本： 9.20
GCC版本：GNU Arm Embedded Toolchain 10.3-2021.10

Test environment:
Test board: PY32F410_STK
MDK Version: 5.28
IAR Version: 9.20
GCC Version: GNU Arm Embedded Toolchain 10.3-2021.10
================================================================================
使用步骤：
1. 编译下载程序到MCU，并运行；
2. 配置PA1输入1.0V电压，LED灯灭;
3. 配置PA1输入1.05V电压, LED灯亮;

Example execution steps:
1.Compile and download the program to MCU and run it;
2.Configure PA1 input voltage of 1.0V, LED light off;
3.Configure PA1 input voltage of 1.05V, LED light on;
================================================================================
注意事项：
使用vrefbuf,PD7需接1uf电容到地

Notes:
To use VREFBuf, PD7 needs to connect a 1UF capacitor to ground
================================================================================